#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

reverse_string(char* arr,int sz)
{
	int i = 10-sz;
	int j = sz - 1;

	if (j >= i)
	{
		int tmp = arr[i];
		arr[i] = arr[j];
		arr[j] = tmp;
		
		
		reverse_string(arr, j);
	}
}

int main()
{
	char arr[10] = { 0 };
	int sz = sizeof(arr) / sizeof(arr[0]);

	for (int k = 0; k < 10; k++)
	{
		scanf("%c", &arr[k]);
	}
	
	reverse_string(arr,sz);
	for (int i = 0; i < 10; i++)
	{
		printf("%c", arr[i]);
	}
	
	return 0;
}